package com.example.mylibrary.repository;

import com.example.mylibrary.entity.Borrow;

import java.util.List;

public interface BorrowRepository {
    public void insert(Integer bookid, Integer readerid, String borrowTime, String returnTime, Integer adminid, Integer state);

    public List<Borrow> findAllByReaderId(Integer readerid,Integer index,Integer limt);

    public int count(Integer readerid);

    public List<Borrow> findAllBorrowByState(Integer state, Integer index, Integer limit);

    public int countByState(Integer state);

    public void handle(Integer borrowid, Integer state, Integer adminid);
}
